package cn.com.code.design.rpc.config.spring.bean;

import cn.com.code.design.rpc.config.ConsumerConfig;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author zhengpei
 * @date 2021/11/5
 */
public class ConsumerBean<T> extends ConsumerConfig<T> implements FactoryBean {

  @Override
  public Object getObject() throws Exception {
    System.out.format("消费者信息=> [接口：%s] [别名：%s] \r\n", nozzle, alias);

    // 需要实现socket连接和信息发送
    return null;
  }

  @Override
  public Class<?> getObjectType() {

    return null;
  }

  @Override
  public boolean isSingleton() {
    return true;
  }
}
